package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;


@Component
@DisconfFile(filename = "paipai.properties", targetDirPath = "disconf")
public class PaipaiProperties {


    private String url;
    private String appkey;
    private String appSecret;
    private String sign_method;
    private String method;


    @DisconfFileItem(name = "paipai.url", associateField = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @DisconfFileItem(name = "paipai.appkey", associateField = "appkey")
    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    @DisconfFileItem(name = "paipai.appSecret", associateField = "appSecret")
    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    @DisconfFileItem(name = "paipai.sign_method", associateField = "sign_method")
    public String getSign_method() {
        return sign_method;
    }

    public void setSign_method(String sign_method) {
        this.sign_method = sign_method;
    }


    @DisconfFileItem(name = "paipai.method", associateField = "method")
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }


}
